# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=flawfinder
pkgver=2.0.19
pkgrel=0
pkgdesc="Examines C/C++ source code for security flaws"
url="https://dwheeler.com/flawfinder/"
arch="noarch"
license="GPL-2.0"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
source="https://dwheeler.com/flawfinder/flawfinder-$pkgver.tar.gz"

check() {
	make check PYTHON=python3 PYTHON3=python3
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
7ac8684f157f30cb7cc0e2d9c270f92bb26e9207d9879530c499cc93af10070c2558f3794cc8b1a0a51b52ae771a4aa47157b467d0e6578cab96360cb0c6d90b  flawfinder-2.0.19.tar.gz
"
